
var GlobalConst = {

}

GlobalConst.NEWTXTLINEMARK = '\n';
GlobalConst.MaxDisScaling = 5000;
GlobalConst.MinDisScaling = 0.00000001;
GlobalConst.RectSel_GID = 1;

GlobalConst.ZERO_4E = 0.0001;
GlobalConst.ZERO_8E = 0.00000001;
GlobalConst.SelectGap = 5;
GlobalConst.FocusSelGap = 10;
GlobalConst.FocusPointSize = 4;
GlobalConst.CmpDegreeGap = 5;//与特征角的差小于此参数即可认为垂直、平行
GlobalConst.MinSelRectGap = 5;

GlobalConst.BlockGroup = 0x02;
GlobalConst.ConnectLine = 0x0201;
GlobalConst.CommonBlock = 0x0202; //常规模具，或者图块
GlobalConst.UMLMold = 0x0203;//UML模型模具
GlobalConst.SoftUICom = 0x0204;//软件界面原型组件
GlobalConst.CommBusLine = 0x0207;//母线
GlobalConst.CompositSymGraphType = 0x020c;//其他组合类图符，内部子图形只显示，不是单独对象

GlobalConst.TopoNode = 0x0220;

GlobalConst.BaseUnit = 0x03;
GlobalConst.BaseUnitPolyline = 0x030a;
GlobalConst.TwoPtline_noneTopo = 0x030a0001;//直线，无拓扑
GlobalConst.Polyline_noneTopo = 0x030a0002;//多段线，无拓扑
GlobalConst.TwoPtline_Topo = 0x030a0003;//直线，有拓扑
GlobalConst.Polyline_Topo = 0x030a0004;//多段线，有拓扑

GlobalConst.BaseUnitRectangle = 0x030b;
GlobalConst.BaseUnitCircle = 0x030c;

GlobalConst.BaseUnitPolygon = 0x030d;
GlobalConst.RegularPolygon = 0x030d01;
GlobalConst.MultiStarPolygon = 0x030d02;


GlobalConst.BaseUnitText = 0x030e;//文本
GlobalConst.DimTextType = 0x030e0001;//标注数值文本，跟被标注对象有联动性
GlobalConst.CADTextType = 0x030e0002;//cad中普通文本

GlobalConst.BaseUnitYCText = 0x030f;//遥测文本
GlobalConst.QuadraticCurve = 0x0310;//二次贝塞尔曲线
GlobalConst.BezierCurve = 0x0311;//三次贝塞尔曲线
GlobalConst.AuxLine = 0x0312;//辅助线
GlobalConst.SpLine = 0x0313;//样条曲线
GlobalConst.BaseUnitEllipseArc = 0x0314;//椭圆弧
GlobalConst.Hatch = 0x0315;//填充区域

GlobalConst.BaseUnitArc = 0x0320;
GlobalConst.BaseUnitChord = 0x0321;
GlobalConst.BaseUnitPie = 0x0322;
GlobalConst.BaseUnitEllipse = 0x0323;
GlobalConst.BaseUnitImage = 0x0324;
GlobalConst.BaseUnitGridGraph = 0x0325;
GlobalConst.BaseUnitSVGGraph = 0x0326;
GlobalConst.TerminalType = 0x0327;//端子
GlobalConst.BaseUnitArcRing = 0x0328;//圆弧环
GlobalConst.BaseUnitTabelList = 0x0329;//表格
GlobalConst.BaseUnitTabelCell = 0x0330;//表格内可编辑单元
GlobalConst.PathType = 0x0331;//复杂路径
GlobalConst.CylinderType = 0x0332;//圆柱
GlobalConst.CubeType = 0x0333;//立方体
GlobalConst.SpecialRectType = 0x0334;//带切角的特殊矩形
GlobalConst.XMindType = 0x0335;//xmind主题图形

GlobalConst.CompositeFrameType = 0x0380;

GlobalConst.dynamicGroup = 0x04;
GlobalConst.Dynamic_HistTypeID = 0x0401;
GlobalConst.Dynamic_PipeLineID = 0x0402;
GlobalConst.Dynamic_StatisicFormTypeID = 0x0403;
GlobalConst.Dynamic_StatiscalCurveChartTypeID = 0x0404;
GlobalConst.Dynamic_PieChartTypeID = 0x0405;
GlobalConst.Dynamic_TimerTypeID = 0x0406;

//标注类
GlobalConst.dimGroup = 0x05;
GlobalConst.dimLine = 0x0501;//线性标注
GlobalConst.dimRadius = 0x0502;//半径标注
GlobalConst.dimDiameter = 0x0503;//直径标注
GlobalConst.dimAngle = 0x0504;//角度标注
GlobalConst.dimAlign = 0x0505;//对齐标注
GlobalConst.dimArc = 0x0506;//圆弧标注


GlobalConst.PtList_CoordType = "ptlist";
GlobalConst.Pt_CoordType = "pt";
GlobalConst.Single_CoordType = "single";

GlobalConst.white = "#ffffff";
GlobalConst.blue = "#ff0000";
GlobalConst.orange = "#ffFF27";

GlobalConst.sysPreDefColors = [
    'rgba(255, 255, 255, 1)',
    'rgba(0, 0, 0, 1)',
    'rgba(255, 0, 0, 1)',
    'rgba(0, 255, 0, 1)',
    'rgba(0, 0, 255, 1)',
    'rgba(128, 128, 128, 1)',
    'rgba(255, 69, 0, 1)',
    'rgba(255, 140, 0, 1)',
    'rgba(255, 215, 0, 1)',
    'rgba(144, 238, 144, 1)',
    'rgba(0, 206, 209, 1)',
    'rgba(30, 144, 255, 1)',
    'rgba(199, 21, 133, 1)',
    'rgba(255, 69, 0, 0.68)',
    'rgba(255, 120, 0, 1)',
    'rgba(250, 212, 0, 1)',
    'rgba(144, 240, 144, 0.5)',
    'rgba(0, 186, 189, 1)',
    'rgba(31, 147, 255, 0.73)',
    'rgba(199, 21, 133, 0.46)'
];

GlobalConst.LINKMARK = "$";
GlobalConst.LINK_UNIT_MARK = "@";
GlobalConst.Label2ParentGap = 10;



export default{GlobalConst}